package com.itheima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.pojo.Employee;
import com.itheima.pojo.Meal;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MealMapper extends BaseMapper<Employee> {
    int insertMeal(Meal meal);

    List<Meal> selectMealPage(@Param("name") String name, @Param("index") int index, @Param("pageSize") int pageSize);

    int updateMeal(Meal meal);

    Meal selectMealById(@Param("id") String id);

    int deleteMeal(@Param("ids") String[] ids);

    int updateStatusById(@Param("status") int status, @Param("ids") String... ids);
}
